package com.zhzh.StudySpringBoot.domain;

import org.apache.ibatis.annotations.*;

/**
 *
 *
 * @author zhangzhen
 * @version C10 2018年02月02日 
 * @since SDP V300R003C10
 */

@Mapper
public interface UserMapper
{
    @Select("SELECT * FROM user WHERE NAME = #{name}")
    User findByName(@Param("name") String name);

    @Insert("INSERT INTO USER(NAME, AGE) VALUES(#{name}, #{age})")
    int insert(@Param("name") String name, @Param("age") Integer age);

}
